package com.yx.outSourcing.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yx.outSourcing.annotation.ExcelColumn;
import com.yx.outSourcing.enums.AppStatus;
import com.yx.outSourcing.enums.PersonStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


@Data
@ApiModel("外协人员VO")
public class OutsourcingPersonVO {
    @ApiModelProperty("人员ID")
    @ExcelColumn(name = "人员ID", order = 1)
    private Long perId;

    @ApiModelProperty("姓名")
    @ExcelColumn(name = "姓名", order = 2)
    private String userName;

    @ApiModelProperty("身份证号")
    @ExcelColumn(name = "身份证号", order = 3)
    private String idCard;

    @ApiModelProperty("联系方式")
    @ExcelColumn(name = "联系方式", order = 4)
    private String userPhone;

    @ApiModelProperty("公司名称")
    @ExcelColumn(name = "公司名称", order = 5)
    private String companyName;

    @ApiModelProperty("工作区域")
    @ExcelColumn(name = "工作区域", order = 6)
    private String workArea;

    @ApiModelProperty("状态(1-正常,0-失效)")
    @ExcelColumn(name = "状态", order = 7)
    private PersonStatus status;

    @ApiModelProperty("IC卡编号")
    @ExcelColumn(name = "IC卡编号", order = 8)
    private String icNo;

    @ApiModelProperty("入厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelColumn(name = "入厂日期", order = 9, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime entryTime;

    @ApiModelProperty("结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelColumn(name = "结束日期", order = 10, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("照片数量")
    @ExcelColumn(name = "照片数量", order = 11)
    private Integer photoCount;
}
